
package co.edu.unal.satacredito.database.entity;
import com.google.code.morphia.annotations.Entity;
import com.google.code.morphia.annotations.Id;
import com.google.code.morphia.annotations.Indexed;
import com.google.code.morphia.utils.IndexDirection;
import org.bson.types.ObjectId;



/**
 *
 * @author Miguel Alexander Diaz
 * 257835
 */
@Entity
public class Administrator {
    @Id 
    private ObjectId id;
    private String name;
    private String lastName;
    @Indexed(value= IndexDirection.ASC,unique=true)
    private String user;
    private String password;
    @Indexed(value=IndexDirection.ASC, unique=true)
    private long document;

    public Administrator() {
    }
    
    public Administrator(String id) {
        this.id = new ObjectId(id);
    }
    
    public long getDocument() {
        return document;
    }

    public void setDocument(long document) {
        this.document = document;
    }

    public ObjectId getId() {
        return id;
    }

    public void setId(ObjectId id) {
        this.id = id;
    }
    

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }
}
